package com.gyx.lottery.service.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ActivityPrizeStatuseEnum {

    INIT(1, "初始化"),

    COMPLETED(2, "已被抽取");
    private Integer code;
    private String message;
    public static ActivityPrizeStatuseEnum forName(String name){
        for(ActivityPrizeStatuseEnum activityPrizeStatuseEnum:ActivityPrizeStatuseEnum.values()){
            if(activityPrizeStatuseEnum.name().equalsIgnoreCase(name))
            {
                return activityPrizeStatuseEnum;
            }
        }
        return null;
    }
}
